local itemtable = {
    "doro_orange", "doro_weapon_mountain", "doro_weapon_shadow",
    "doro_orange_pie", "doro_orange_sugar", "doro_orange_hat",
}
local tab = {}
for k, v in pairs(itemtable) do
    table.insert(Assets, Asset("ATLAS", "images/inventoryimages/" .. v .. ".xml"))
    table.insert(Assets, Asset("IMAGE", "images/inventoryimages/" .. v .. ".tex"))
    table.insert(Assets, Asset("ATLAS_BUILD", "images/inventoryimages/" .. v .. ".xml", 256))
    RegisterInventoryItemAtlas("images/inventoryimages/" .. v .. ".xml", v .. ".tex")

    tab[v] = resolvefilepath_soft("images/inventoryimages/" .. v .. ".xml")
end
local DrawingTool = require("components/drawingtool")
local oldGetImageToDraw = DrawingTool.GetImageToDraw
function DrawingTool:GetImageToDraw(target)
    local image, ent, atlas, bgimage, bgatlas = oldGetImageToDraw(self, target)
    if image and tab[image] then
        atlas = tab[image]
    end
    return image, ent, atlas, bgimage, bgatlas
end

local minimaplist = {

}
for k, v in pairs(minimaplist) do
    table.insert(Assets, Asset("ATLAS", "images/map_icons/" .. v .. ".xml"))
    AddMinimapAtlas("images/map_icons/" .. v .. ".xml")
end
